import request from '@/utils/request'

// 查询审核列表
export function listCheck(query) {
  return request({
    url: '/carService/check/list',
    method: 'get',
    params: query
  })
}

// 查询审核详细
export function getCheck(ciId) {
  return request({
    url: '/carService/check/' + ciId,
    method: 'get'
  })
}

// 新增审核
export function addCheck(data) {
  return request({
    url: '/carService/check',
    method: 'post',
    data: data
  })
}

// 修改审核
export function updateCheck(data) {
  return request({
    url: '/carService/check',
    method: 'put',
    data: data
  })
}

// 删除审核
export function delCheck(ciId) {
  return request({
    url: '/carService/check/' + ciId,
    method: 'delete'
  })
}


// 根据信息发布id查询审核详细
export function getCheckByRiId(riId) {
  return request({
    url: '/carService/check/a/selectByRiId/' + riId,
    method: 'get'
  })
}
